using System;
using System.Collections;
using System.Collections.Generic;

using DATA.Base;

namespace DATA.BusinessObjects
{
    public partial class Hoadon : BusinessBase<string>
    {
        #region Declarations

		private float? _triGiaHoaDon = null;
		
		private Khachhang _khachhang = null;
		
		private IList<Chitiethoadon> _chitiethoadons = new List<Chitiethoadon>();
		
		#endregion

        #region Constructors

        public Hoadon() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_triGiaHoaDon);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual float? TriGiaHoaDon
        {
            get { return _triGiaHoaDon; }
			set
			{
				OnTriGiaHoaDonChanging();
				_triGiaHoaDon = value;
				OnTriGiaHoaDonChanged();
			}
        }
		partial void OnTriGiaHoaDonChanging();
		partial void OnTriGiaHoaDonChanged();
		
		public virtual Khachhang Khachhang
        {
            get { return _khachhang; }
			set
			{
				OnKhachhangChanging();
				_khachhang = value;
				OnKhachhangChanged();
			}
        }
		partial void OnKhachhangChanging();
		partial void OnKhachhangChanged();
		
		public virtual IList<Chitiethoadon> Chitiethoadons
        {
            get { return _chitiethoadons; }
            set
			{
				OnChitiethoadonsChanging();
				_chitiethoadons = value;
				OnChitiethoadonsChanged();
			}
        }
		partial void OnChitiethoadonsChanging();
		partial void OnChitiethoadonsChanged();
		
        #endregion
    }
}
